﻿//-----------------------------------------------------------------------------------
// <copyright file="ImGroupUser.cs" company="Go Enterprises">
// * copyright: (C) 2018 公司名称 版权所有。
// * version  : 1.0.0.0
// * author   : Mr.King
// * fileName : ImGroupUser.cs
// * history  : created by Mr.King 2024-11-26 18:34:56
// </copyright>
//-----------------------------------------------------------------------------------

using System;
using System.Runtime.Serialization;
using XLLCDP.ScalableDataModel.DBMapAttribute;

namespace ImModels.Service.Models.Data
{
    /// <summary>
    /// ImGroupUser 群用户信息表
    /// </summary>
    public class ImGroupUser
    {
        /// <summary>
        /// 雪花ID,全局唯一
        /// </summary>
        public long KID { get; set; } = 0;

        /// <summary>
        /// 企业ID
        /// </summary>
        public long EnterpriseId { get; set; } = 0;

        /// <summary>
        /// 群组ID
        /// </summary>
        public long GroupId { get; set; } = 0;

        /// <summary>
        /// 用户ID
        /// </summary>
        public string BizUserId { get; set; } = "";

        /// <summary>
        /// 加入时间
        /// </summary>
        public DateTime JoinTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 加入状态,0待审核 1审核通过 2审核不通过
        /// </summary>
        public short JoinState { get; set; } = 0;

        /// <summary>
        /// 加入描述
        /// </summary>
        public string JoinComment { get; set; } = "";

        /// <summary>
        /// 邀请者
        /// </summary>
        public string InviterBizUserId { get; set; } = "";

        /// <summary>
        /// 禁言到期时间
        /// </summary>
        public DateTime EnableTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 用户名称 数据库不存此字段 业务自行补充
        /// </summary>
        [XLDbColumn(IsIgnore = true)]
        public string FullName { get; set; } = "";


        /*BC47A26EB9A59406057DDDD62D0898F4*/
    }
}
